package router

import (
	"go_ruoyi/middleware"
	system_router "go_ruoyi/router/system"

	"github.com/gin-gonic/gin"
)

func InitRouter(r *gin.Engine) {
	CaptchaImage(r)
	Register(r)
	Login(r)
	sys := r.Group("system")
	sys.Use(middleware.Auth)
	system_router.DictRouter(sys)
	system_router.DeptRouter(sys)
	system_router.UserRouter(sys)
}
